<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>猫头鹰</title>
  <!-- lqpcss -->
  <link rel="stylesheet" href="../../dist/css/lqp.css">
</head>
<body class="hold-transition sidebar-mini">
<div class="wrapper">
  <!-- 导航栏 -->
  <nav class="main-header navbar navbar-expand navbar-white navbar-light">
    <!-- Left navbar links -->
    <ul class="navbar-nav">
      <li class="nav-item">
        <a class="nav-link" data-widget="pushmenu" href="#" role="button"><i class="fas fa-bars"></i></a>
      </li>
      <li class="nav-item d-none d-sm-inline-block">
        <a href="index3.html" class="nav-link">Home1</a>
      </li>
      <li class="nav-item d-none d-sm-inline-block">
        <a href="#" class="nav-link">Contact</a>
      </li>
    </ul>

    <!-- SEARCH FORM -->
    <form class="form-inline ml-3">
      <div class="input-group input-group-sm">
        <input class="form-control form-control-navbar" type="search" placeholder="Search" aria-label="Search">
        <div class="input-group-append">
          <button class="btn btn-navbar" type="submit">
            <i class="fas fa-search"></i>
          </button>
        </div>
      </div>
    </form>

    <!-- Right navbar links -->
    <ul class="navbar-nav ml-auto">
      <!-- Messages Dropdown Menu -->
      <li class="nav-item dropdown">
        <a class="nav-link" data-toggle="dropdown" href="#">
          <i class="far fa-comments"></i>
          <span class="badge badge-danger navbar-badge">3</span>
        </a>
        <div class="dropdown-menu dropdown-menu-lg dropdown-menu-right">
          <a href="#" class="dropdown-item">
            <!-- Message Start -->
            <div class="media">
              <img src="dist/img/user1-128x128.jpg" alt="User Avatar" class="img-size-50 mr-3 img-circle">
              <div class="media-body">
                <h3 class="dropdown-item-title">
                  Brad Diesel
                  <span class="float-right text-sm text-danger"><i class="fas fa-star"></i></span>
                </h3>
                <p class="text-sm">Call me whenever you can...</p>
                <p class="text-sm text-muted"><i class="far fa-clock mr-1"></i> 4 Hours Ago</p>
              </div>
            </div>
            <!-- Message End -->
          </a>
          <div class="dropdown-divider"></div>
          <a href="#" class="dropdown-item">
            <!-- Message Start -->
            <div class="media">
              <img src="dist/img/user8-128x128.jpg" alt="User Avatar" class="img-size-50 img-circle mr-3">
              <div class="media-body">
                <h3 class="dropdown-item-title">
                  John Pierce
                  <span class="float-right text-sm text-muted"><i class="fas fa-star"></i></span>
                </h3>
                <p class="text-sm">I got your message bro</p>
                <p class="text-sm text-muted"><i class="far fa-clock mr-1"></i> 4 Hours Ago</p>
              </div>
            </div>
            <!-- Message End -->
          </a>
          <div class="dropdown-divider"></div>
          <a href="#" class="dropdown-item">
            <!-- Message Start -->
            <div class="media">
              <img src="dist/img/user3-128x128.jpg" alt="User Avatar" class="img-size-50 img-circle mr-3">
              <div class="media-body">
                <h3 class="dropdown-item-title">
                  Nora Silvester
                  <span class="float-right text-sm text-warning"><i class="fas fa-star"></i></span>
                </h3>
                <p class="text-sm">The subject goes here</p>
                <p class="text-sm text-muted"><i class="far fa-clock mr-1"></i> 4 Hours Ago</p>
              </div>
            </div>
            <!-- Message End -->
          </a>
          <div class="dropdown-divider"></div>
          <a href="#" class="dropdown-item dropdown-footer">See All Messages</a>
        </div>
      </li>
      <!-- Notifications Dropdown Menu -->
      <li class="nav-item dropdown">
        <a class="nav-link" data-toggle="dropdown" href="#">
          <i class="far fa-bell"></i>
          <span class="badge badge-warning navbar-badge">15</span>
        </a>
        <div class="dropdown-menu dropdown-menu-lg dropdown-menu-right">
          <span class="dropdown-item dropdown-header">15 Notifications</span>
          <div class="dropdown-divider"></div>
          <a href="#" class="dropdown-item">
            <i class="fas fa-envelope mr-2"></i> 4 new messages
            <span class="float-right text-muted text-sm">3 mins</span>
          </a>
          <div class="dropdown-divider"></div>
          <a href="#" class="dropdown-item">
            <i class="fas fa-users mr-2"></i> 8 friend requests
            <span class="float-right text-muted text-sm">12 hours</span>
          </a>
          <div class="dropdown-divider"></div>
          <a href="#" class="dropdown-item">
            <i class="fas fa-file mr-2"></i> 3 new reports
            <span class="float-right text-muted text-sm">2 days</span>
          </a>
          <div class="dropdown-divider"></div>
          <a href="#" class="dropdown-item dropdown-footer">See All Notifications</a>
        </div>
      </li>
      <li class="nav-item">
        <a class="nav-link" data-widget="fullscreen" href="#" role="button">
          <i class="fas fa-expand-arrows-alt"></i>
        </a>
      </li>
      <li class="nav-item">
        <a class="nav-link" data-widget="control-sidebar" data-slide="true" href="#" role="button">
          <i class="fas fa-th-large"></i>
        </a>
      </li>
    </ul>
  </nav>
  <!-- 侧边栏-->
  <aside class="main-sidebar sidebar-light-white elevation-4">
    <!-- Brand Logo -->
    <a href="index3.html" class="brand-link">
      <img src="dist/img/AdminLTELogo.png" alt="AdminLTE Logo" class="brand-image img-circle elevation-3"
           style="opacity: .8">
      <span class="brand-text font-weight-light">logo</span>
    </a>

    <!-- Sidebar -->
    <div class="sidebar">
      <!-- Sidebar user panel (optional) -->
      <div class="user-panel mt-3 pb-3 mb-3 d-flex">
        <div class="image">
          <img src="dist/img/user2-160x160.jpg" class="img-circle elevation-2" alt="User Image">
        </div>
        <div class="info">
          <a href="#" class="d-block">管理员</a>
          <span class="rounded-circle bg-info l-circle"></span><span>在线</span>
        </div>
      </div>

      <!-- SidebarSearch Form -->
      <div class="form-inline">
        <div class="input-group input-group-sm" data-widget="sidebar-search">
          <input class="form-control form-control-sidebar" type="search" placeholder="Search" aria-label="Search">
          <div class="input-group-append">
            <button class="btn btn-sidebar">
              <i class="fas fa-search fa-fw"></i>
            </button>
          </div>
        </div>
      </div>
      <nav class="mt-2">
        <ul class="nav nav-pills nav-sidebar flex-column" data-widget="treeview" role="menu" data-accordion="false">
          <div class="nav-item">
            <a href="./index.html" class="nav-link active">
              <i class="nav-icon fas fa-tachometer-alt"></i>
              <p>控制台<span class="badge badge-info right">6</span></p>
            </a>
          </div>
          <!--  试题管理 -->
          <li class="nav-item">
            <a href="#" class="nav-link">
              <i class="nav-icon fas fa-tachometer-alt"></i>
              <p>
                试题管理
                <i class="right fas fa-angle-left"></i>
              </p>
            </a>
            <ul class="nav nav-treeview">
              <li class="nav-item">
                <a href="./radio.html" class="nav-link active">
                  <i class="far fa-circle nav-icon"></i>
                  <p>单选题</p>
                </a>
              </li>
              <li class="nav-item">
                <a href="./multiplechoice.html" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>多选题</p>
                </a>
              </li>
              <li class="nav-item">
                <a href="./judge.html" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>判断题</p>
                </a>
              </li>
              <li class="nav-item">
                <a href="./completion.html" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>填空题</p>
                </a>
              </li>
              <li class="nav-item">
                <a href="./QandA.html" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>问答题</p>
                </a>
              </li>
              <li class="nav-item">
                <a href="./understanding.html" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>理解题</p>
                </a>
              </li>
              <li class="nav-item">
                <a href="./other.html" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>其它题</p>
                </a>
              </li>
            </ul>
          </li>
          <!--          考试管理-->
          <li class="nav-item">
            <a href="#" class="nav-link">
              <i class="nav-icon fas fa-copy"></i>
              <p>
                考试管理
                <i class="fas fa-angle-left right"></i>
                <span class="badge badge-info right">6</span>
              </p>
            </a>
            <ul class="nav nav-treeview">
              <li class="nav-item">
                <a href="pages/test/testpaper.html" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>试卷管理</p>
                </a>
              </li>
              <li class="nav-item">
                <a href="pages/test/release.html" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>发布考试</p>
                </a>
              </li>
              <li class="nav-item">
                <a href="pages/test/examinationpaper.html" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>考卷管理</p>
                </a>
              </li>
            </ul>
          </li>
          <!--          练习管理-->
          <li class="nav-item">
            <a href="#" class="nav-link">
              <i class="nav-icon fas fa-chart-pie"></i>
              <p>
                练习管理
                <i class="right fas fa-angle-left"></i>
              </p>
            </a>
            <ul class="nav nav-treeview">
              <!--              <li class="nav-item">-->
              <!--                <i class="far fa-circle nav-icon text-sm text-primary"></i>-->
              <!--                <button type="button" class="btn btn-default border-0 text-sm" data-toggle="modal" data-target="#modal-xl">-->
              <!--                  发布练习-->
              <!--                </button>-->
              <!--              </li>-->
              <li class="nav-item">
                <a href="pages/practice/publishpractice.html" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>发布练习</p>
                </a>
              </li>
            </ul>
          </li>
          <!--          证书管理-->
          <li class="nav-item">
            <a href="pages/certificate/certificate.html" class="nav-link">
              <i class="nav-icon fas fa-tree"></i>
              <p>
                证书管理
                <i class="fas fa-angle-left right"></i>
              </p>
            </a>
            <ul class="nav nav-treeview">
              <li class="nav-item">
                <a href="pages/certificate/certificate.html" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p> 证书管理</p>
                </a>
              </li>
              <li class="nav-item">
                <a href="pages/certificate/addcertificate.html" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>添加证书</p>
                </a>
              </li>
              <li class="nav-item">
                <a href="pages/certificate/record.html" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>发放记录</p>
                </a>
              </li>
              <li class="nav-item">
                <a href="pages/certificate/addtemplate.html" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>添加模板</p>
                </a>
              </li>
              <li class="nav-item">
                <a href="pages/certificate/Template.html" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>模板管理</p>
                </a>
              </li>
            </ul>
          </li>
          <!--          用户管理-->
          <li class="nav-item">
            <a href="#" class="nav-link">
              <i class="nav-icon fas fa-edit"></i>
              <p>
                用户管理
                <i class="fas fa-angle-left right"></i>
              </p>
            </a>
            <ul class="nav nav-treeview">
              <li class="nav-item">
                <a href="pages/users/Departmentstaff.html" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>部门人员</p>
                </a>
              </li>
              <li class="nav-item">
                <a href="pages/users/Departmentmanagement.html" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>部门管理</p>
                </a>
              </li>
              <li class="nav-item">
                <a href="pages/users/Personnelanalysis.html" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>人员分析</p>
                </a>
              </li>
            </ul>
          </li>
          <!--          发布试卷-->
          <li class="nav-item">
            <a href="#" class="nav-link">
              <i class="nav-icon fas fa-edit"></i>
              <p>
                发布试卷
                <i class="fas fa-angle-left right"></i>
              </p>
            </a>
            <ul class="nav nav-treeview">
              <li class="nav-item">
                <a href="pages/publish/addtestpaper.html" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>添加试卷</p>
                </a>
              </li>
              <li class="nav-item">
                <a href="pages/publish/importusers.html" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>导入人员</p>
                </a>
              </li>
              <li class="nav-item">
                <a href="pages/publish/addusers.html" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>添加人员</p>
                </a>
              </li>
              <li class="nav-item">
                <a href="pages/publish/addcertificate.html" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>添加证书</p>
                </a>
              </li>
            </ul>
          </li>
          <!--          公告管理-->
          <li class="nav-item">
            <a href="#" class="nav-link">
              <i class="nav-icon fas fa-table"></i>
              <p>
                公告管理
                <i class="fas fa-angle-left right"></i>
              </p>
            </a>
            <ul class="nav nav-treeview">
              <li class="nav-item">
                <a href="pages/Notice/notices.html" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>发布公告</p>
                </a>
              </li>
              <li class="nav-item">
                <a href="pages/Notice/noticesmanegment.html" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>公告管理</p>
                </a>
              </li>
              <li class="nav-item">
                <a href="pages/Notice/information.html" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>发布信息</p>
                </a>
              </li>
              <li class="nav-item">
                <a href="pages/Notice/informationmanegment.html" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>信息管理</p>
                </a>
              </li>
              <li class="nav-item">
                <a href="pages/Notice/News.html" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>发布新闻</p>
                </a>
              </li>
              <li class="nav-item">
                <a href="pages/Notice/Newsmanagement.html" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>新闻管理</p>
                </a>
              </li>
              <li class="nav-item">
                <a href="pages/Notice/checknotice.html" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>查看公告</p>
                </a>
              </li>
            </ul>
          </li>
          <!--         统计分析-->
          <li class="nav-item">
            <a href="#" class="nav-link">
              <i class="nav-icon fas fa-table"></i>
              <p>
                统计分析
                <i class="fas fa-angle-left right"></i>
              </p>
            </a>
            <ul class="nav nav-treeview">
              <li class="nav-item">
                <a href="pages/analysis/Performance.html" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p> 成绩分析</p>
                </a>
              </li>
              <li class="nav-item">
                <a href="pages/analysis/testquestions.html" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>试题分析</p>
                </a>
              </li>

            </ul>
          </li>
        </ul>
      </nav>
    </div>
  </aside>

  <div class="content-wrapper">


    <section class="content">
      <div class="container-fluid">
        <div class="row">
          <div class="col-md-12">
                  <div class="modal-dialog modal-xl modal-dialog-centered">
                    <div class="modal-content">
                      <div class="modal-header">
                        <h4 class="modal-title">选择试卷</h4>
                      </div>
                      <form action="" id="addTestForm" method="post" onsubmit="return false">
                        <div class="modal-body">
                          <div class="row">
                            <div class="col-md-12">
                              <div class="card">
                                <div class="card-header bg-info">
                                  基本属性
                                </div>
                                <div class="card-body">
                                  <!--                  form-->
                                  <div class="row">
                                    <div class="col-6">

                                      <div class="form-group row">
                                        <label class="col-sm-4 col-form-label">
                                          <i class="fas fa-star text-danger pr-2"></i>考试名称：</label>
                                        <div class="col-sm-6">
                                          <input class="examname w-100 form-control" name="examname" placeholder="考试名称..." >
                                        </div>
                                      </div>

                                      <div class="form-group row">
                                        <label class="col-sm-4 col-form-label">
                                          <i class="fas fa-star text-danger pr-2"></i>考试分类：</label>
                                        <div class="col-sm-6">
                                          <select class="form-control text-xs" name="testquestions">
                                            <option value="0" selected="selected">考试</option>
                                            <option value="1">考试</option>
                                            <option value="2">考试</option>
                                            <option value="3">考试</option>
                                          </select>
                                        </div>
                                        <div class="col-sm-2">
                                          <i
                                            class="fas fa-plus-circle pr-1 text-info"></i>

                                        </div>
                                      </div>


                                      <div class="form-group row">
                                        <label for="inputEmail3" class="col-sm-4 col-form-label"><i
                                          class="fas fa-star text-danger pr-2"></i>是否付费：</label>
                                        <div class="col-sm-6">
                                          <select class="form-control" name="difficulty">
                                            <option value="0">是</option>
                                            <option value="1">否</option>
                                          </select>
                                        </div>
                                      </div>

                                      <div class="form-group row">
                                        <label for="inputEmail3" class="col-sm-4 col-form-label"><i
                                          class="fas fa-star text-danger pr-2"></i>分享金额：</label>
                                        <div class="col-sm-6">
                                          <input class="form-control" name="account" placeholder="金额...">
                                        </div>
                                        <span class="col-1">元</span>
                                      </div>

                                      <div class="form-group row">
                                        <label for="inputEmail3" class="col-sm-4 col-form-label">允许试卷被搜索：</label>
                                        <div class="col-sm-6">
                                          <select class="form-control" name="difficulty">
                                            <option value="0">是</option>
                                            <option value="1">否</option>
                                          </select>
                                        </div>
                                      </div>

                                      <div class="form-group row">
                                        <label for="inputEmail3" class="col-sm-4 col-form-label">设置预览密码：</label>
                                        <div class="col-sm-6">
                                          <select class="form-control" name="keywordman">
                                            <option value="0">是</option>
                                            <option value="1">否</option>
                                          </select>
                                        </div>
                                        <div class="col-sm-2 showkeywordman">

                                            <i class="fa fa-cog pr-1 text-info" data-toggle="modal" data-target="#modal-xl-keyword" ></i>

                                        </div>
                                      </div>

                                      <div class="form-group row">
                                        <label class="col-sm-4 col-form-label">考试描述：</label>
                                        <div class="col-sm-6">
                                         <textarea class="form-control" rows="3" placeholder="考试描述 ..." name="content" id="id1"></textarea>
                                        </div>
                                      </div>



                                    </div>
                                    <div class="col-4 offset-1">
                                      <div class="card">
                                        <img src="../../docs/assets/img/user6-128x128.jpg" class="card-img-top" alt="...">
                                        <div class="card-body">
                                          <h5 class="card-title">考试封面</h5>
                                        </div>
                                      </div>

                                    </div>
                                  </div>


                                </div>
                              </div>
                            </div>
                          </div>
                          <div class="row">
                            <div class="col-12">
                              <div class="card">
                                <div class="card-header card-info card-outline">
                                  <h3>添加试卷</h3>
                                </div>
                                <div class="card-body p-0">
                                  <div class="mailbox-controls">
                                    <!-- Check all button -->
                                    <button type="button" class="btn btn-default btn-sm checkbox-toggle">
                                      <i class="far fa-square"></i>
                                    </button>
                                    <div class="btn-group">
                                      <button type="button" class="btn btn-default btn-sm" data-toggle="modal" data-target="#modal-xl-add">
                                        <i class="far fa-plus-square pr-1 text-info"></i>添加试卷
                                      </button>

                                    </div>

                                    <div class="float-right">
                                      1-50/200
                                      <div class="btn-group">
                                        <button type="button" class="btn btn-default btn-sm">
                                          <i class="fas fa-chevron-left"></i>
                                        </button>
                                        <button type="button" class="btn btn-default btn-sm">
                                          <i class="fas fa-chevron-right"></i>
                                        </button>
                                      </div>
                                      <!-- /.btn-group -->
                                    </div>
                                    <!-- /.float-right -->
                                  </div>
                                  <div class="table-responsive mailbox-messages">
                                    <table class="table table-hover lqp-table">
                                      <thead>
                                      <tr>
                                        <th></th>
                                        <th>试卷名称</th>
                                        <th>试卷分类</th>
                                        <th>试卷难度</th>
                                        <th>试卷总数</th>
                                        <th>创建时间</th>
                                        <th>创建人</th>
                                        <th>操作</th>
                                      </tr>
                                      </thead>
                                      <tbody>
                                      <tr id="tr11">
                                        <td>
                                          <div class="form-check">
                                            <input type="checkbox" value="0" id="check11" class="form-check-input">
                                            <label for="check1" class="form-check-label"></label>
                                          </div>
                                        </td>
                                        <td class="mailbox-star">10</td>
                                        <td class="mailbox-name">单选题</td>
                                        <td class="mailbox-subject">选黑还是白</td>
                                        <td class="mailbox-attachment">2020-04-04 12：12</td>
                                        <td class="mailbox-date">正常</td>
                                        <td class="mailbox-date">正常</td>
                                        <td>
                                          <button type="button" class="btn btn-danger btn-xs text-xs delsingle">
                                            <i class="fa fa-trash pr-1" aria-hidden="true"></i> 删除
                                          </button>
                                          <button type="button" class="btn btn-info btn-xs text-xs" data-toggle="modal" data-target="#modal-xl-info">
                                            <i class="fas fa-eye pr-1"></i> 预览
                                          </button>
                                        </td>
                                      </tr>

                                      </tbody>
                                    </table>
                                  </div>
                                </div>
                              </div>
                            </div>
                          </div>
                        </div>
                        <div class="modal-footer justify-content-between">
                          <button type="button" class="btn btn-info btn-sm">保存</button>
                          <button type="submit" class="btn btn-secondary btn-sm float-right">取消</button>
                        </div>
                      </form>
                    </div>
                  </div>
          </div>
        </div>
      </div>
    </section>
  </div>
<!--  添加试卷弹框-->
  <div class="modal fade" id="modal-xl-add">
    <div class="modal-dialog modal-xl modal-dialog-centered">
      <div class="modal-content">
        <div class="modal-header">
          <h4 class="modal-title">
           添加试卷
          </h4>
          <button type="button" class="close" data-dismiss="modal" aria-label="Close">
            <span aria-hidden="true">&times;</span>
          </button>
        </div>
        <div class="modal-body">
          <div class="row">
            <div class="col-md-2">
              <div class="card card-info card-outline">
                <div class="card-header py-2 border-bottom-0">
                  <div class="row">
                    <div class="col">
                      <div class="input-group input-group-sm">
                        <input type="text" class="form-control" placeholder="搜索分类">
                        <div class="input-group-append">
                          <div class="btn btn-info">
                            <i class="fas fa-search pl-2"></i>
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
                <!-- ./card-header -->
                <div class="card-body px-0 pt-0">
                  <table class="table table-hover">
                    <tbody>
                    <tr data-widget="expandable-table" aria-expanded="true">
                      <td>
                        <i class="fas fa-caret-right fa-fw"></i>
                        试卷分类
                      </td>
                    </tr>
                    <tr class="expandable-body">
                      <td>
                        <div class="p-0">
                          <table class="table table-hover">
                            <tbody>
                            <tr data-widget="expandable-table" aria-expanded="false">
                              <td>
                                <i class="fas fa-caret-right fa-fw"></i>
                                单选题分类
                              </td>
                            </tr>
                            <tr class="expandable-body d-none">
                              <td>
                                <div class="p-0" style="display: none;">
                                  <table class="table table-hover">
                                    <tbody>
                                    <tr>
                                      <td><a href="#" class="text-black">新建单选题分类-1</a></td>
                                    </tr>
                                    <tr>
                                      <td>新建单选题分类-2</td>
                                    </tr>
                                    <tr>
                                      <td>新建单选题分类-3</td>
                                    </tr>
                                    </tbody>
                                  </table>
                                </div>
                              </td>
                            </tr>
                            <tr data-widget="expandable-table" aria-expanded="false">
                              <td>
                                <i class="fas fa-caret-right fa-fw"></i>
                                多选题分类
                              </td>
                            </tr>
                            <tr class="expandable-body d-none">
                              <td>
                                <div class="p-0" style="display: none;">
                                  <table class="table table-hover">
                                    <tbody>
                                    <tr>
                                      <td>新建单选题分类-1</td>
                                    </tr>
                                    <tr>
                                      <td>新建单选题分类-2</td>
                                    </tr>
                                    <tr>
                                      <td>新建单选题分类-3</td>
                                    </tr>
                                    </tbody>
                                  </table>
                                </div>
                              </td>
                            </tr>
                            </tbody>
                          </table>
                        </div>
                      </td>
                    </tr>
                    </tbody>
                  </table>
                </div>
                <!-- /.card-body -->
              </div>
              <!-- /.card -->
            </div>
            <div class="col-md-10">
              <div class="card card-outline card-info">
                <div class="card-header">
                  <div class="card-tools">
                    <div class="input-group input-group-sm">
                      <input type="text" class="form-control" placeholder="请输入题目名称">
                      <div class="input-group-append">
                        <div class="btn btn-info">
                          <i class="fas fa-search pl-2"></i>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
                <div class="card-body p-0">
                  <div class="mailbox-controls">
                    <!-- Check all button -->
                    <button type="button" class="btn btn-default btn-sm checkbox-toggle">
                      <i class="far fa-square"></i>
                    </button>


                    <div class="float-right">
                      1-50/200
                      <div class="btn-group">
                        <button type="button" class="btn btn-default btn-sm">
                          <i class="fas fa-chevron-left"></i>
                        </button>
                        <button type="button" class="btn btn-default btn-sm">
                          <i class="fas fa-chevron-right"></i>
                        </button>
                      </div>
                      <!-- /.btn-group -->
                    </div>
                    <!-- /.float-right -->
                  </div>
                  <div class="table-responsive mailbox-messages">
                    <table class="table table-hover lqp-table">
                      <thead>
                      <tr>
                        <th></th>
                        <th>试卷名称</th>
                        <th>总分</th>
                        <th>题数</th>
                        <th>分类</th>
                        <th>创建时间</th>
                      </tr>
                      </thead>
                      <tbody>
                      <tr id="tr1">
                        <td>
                          <div class="form-check">
                            <input type="checkbox" value="0" id="check1" class="form-check-input">
                            <label for="check1" class="form-check-label"></label>
                          </div>
                        </td>
                        <td class="mailbox-star">10</td>
                        <td class="mailbox-name">单选题</td>
                        <td class="mailbox-subject">选黑还是白</td>
                        <td class="mailbox-attachment">2020-04-04 12：12</td>
                        <td class="mailbox-date">正常</td>
                      </tr>
                      </tbody>
                    </table>
                  </div>
                </div>
                <div class="card-footer">
                  <button type="submit" class="btn btn-info">保存</button>
                  <button type="submit" class="btn btn-default float-right">取消</button>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
<!--  密码管理弹框-->
  <div class="modal fade" id="modal-xl-keyword">
    <div class="modal-dialog modal-xl modal-dialog-centered">
      <div class="modal-content">
        <div class="modal-header">
          <h4 class="modal-title">
            密码管理
          </h4>
          <button type="button" class="close" data-dismiss="modal" aria-label="Close">
            <span aria-hidden="true">&times;</span>
          </button>
        </div>
        <div class="modal-body">
          <div class="row">
            <div class="col-md-12">
              <div class="card card-outline card-info">
                <div class="card-header">

                  <div class="card-tools">
                    <div class="input-group input-group-sm">
                      <input type="text" class="form-control" placeholder="请输入题目名称">
                      <div class="input-group-append">
                        <div class="btn btn-info">
                          <i class="fas fa-search pl-2"></i>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
                <div class="card-body p-0">
                  <div class="mailbox-controls">
                    <!-- Check all button -->
                    <button type="button" class="btn btn-default btn-sm checkbox-toggle">
                      <i class="far fa-square"></i>
                    </button>
                    <div class="btn-group">
                      <button type="button" class="btn btn-default btn-sm" data-toggle="modal" data-target="#modal-xl-add">
                        <i class="far fa-plus-square pr-1 text-info"></i>添加密码
                      </button>

                    </div>

                    <div class="float-right">
                      1-50/200
                      <div class="btn-group">
                        <button type="button" class="btn btn-default btn-sm">
                          <i class="fas fa-chevron-left"></i>
                        </button>
                        <button type="button" class="btn btn-default btn-sm">
                          <i class="fas fa-chevron-right"></i>
                        </button>
                      </div>
                      <!-- /.btn-group -->
                    </div>
                    <!-- /.float-right -->
                  </div>
                  <div class="table-responsive mailbox-messages">
                    <table class="table table-hover lqp-table">
                      <thead>
                      <tr>
                        <th></th>
                        <th>密码</th>
                        <th>使用次数</th>
                        <th>使用人</th>
                        <th>电话</th>
                        <th>使用时间</th>
                        <th>操作</th>
                      </tr>
                      </thead>
                      <tbody>
                      <tr id="tr1">
                        <td>
                          <div class="form-check">
                            <input type="checkbox" value="0" id="check1" class="form-check-input">
                            <label for="check1" class="form-check-label"></label>
                          </div>
                        </td>
                        <td class="mailbox-star">10</td>
                        <td class="mailbox-name">单选题</td>
                        <td class="mailbox-star">10</td>
                        <td class="mailbox-name">单选题</td>
                        <td class="mailbox-star">10</td>
                        <td>
                          <button type="button" class="btn btn-danger btn-xs text-xs delsingle">
                            <i class="fa fa-trash pr-1" aria-hidden="true"></i> 删除
                          </button>
                          <button type="button" class="btn btn-info btn-xs text-xs" data-toggle="modal" data-target="#modal-xl-info">
                            <i class="fas fa-copy pr-1"></i> 复制
                          </button>
                        </td>
                      </tr>
                      </tbody>
                    </table>
                  </div>
                </div>
                <div class="card-footer">
                  <button type="submit" class="btn btn-info">保存</button>
                  <button type="submit" class="btn btn-default float-right">取消</button>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
  <!--  底部-->
  <footer class="main-footer">
    <strong>Copyright &copy; 2014-2020 <a href="">汇邦科技有限公司</a>.</strong>All rights reserved.
  </footer>
  <aside class="control-sidebar control-sidebar-dark">
  </aside>
</div>

<!-- jQuery -->
<script src="../../plugins/jquery/jquery.min.js"></script>
<!-- Bootstrap 4 -->
<script src="../../plugins/bootstrap/js/bootstrap.bundle.min.js"></script>

<!-- jquery-validation 提示-->
<script src="../../plugins/jquery-validation/jquery.validate.min.js"></script>
<script src="../../plugins/jquery-validation/additional-methods.min.js"></script>

<!-- AdminLTE App -->
<script src="../../dist/js/adminlte.min.js"></script>
<!-- AdminLTE for demo purposes -->
<script src="../../dist/js/demo.js"></script>
<script src="../../dist/layer/layer.js"></script>
<!-- Page specific script -->



<script>

</script>
<!--...-->
<script>
  $(function () {
    //Enable check and uncheck all functionality 批量
    $('.checkbox-toggle').click(function () {
      var clicks = $(this).data('clicks')
      console.log('clicks------------' + clicks)
      if (clicks) {
        //Uncheck all checkboxes
        $('.mailbox-messages input[type=\'checkbox\']').prop('checked', false)
        $('.checkbox-toggle .far.fa-check-square').removeClass('fa-check-square').addClass('fa-square')
      } else {
        //Check all checkboxes
        $('.mailbox-messages input[type=\'checkbox\']').prop('checked', true)
        $('.checkbox-toggle .far.fa-square').removeClass('fa-square').addClass('fa-check-square')
      }
      $(this).data('clicks', !clicks)
    })

    //Handle starring for font awesome 单条
    $('.mailbox-star').click(function (e) {
      e.preventDefault()
      //detect type
      var $this = $(this).find('a > i')
      var fa = $this.hasClass('fa')

      //Switch states
      if (fa) {
        $this.toggleClass('fa-star')
        $this.toggleClass('fa-star-o')
      }
    })
  })
</script>
<!--新增获取表单数据-->
<script>
  $(function () {
    //设置默认值
    $.validator.setDefaults({
      submitHandler: function (form) {
        console.log($(form).serializeArray());
        let arr = [];
        $('input:radio:checked').each(function () {
          arr.push($(this).val());
        })
        console.log("单选框值" + arr)

        let answerdetail = "";
        arr.forEach(function () {//选中项对应的值
          if (arr == "0") {
            answerdetail = $('#answerA').val();
          }
          if (arr == "1") {
            answerdetail = $('#answerB').val();
          }
          if (arr == "2") {
            answerdetail = $('#answerC').val();
          }
          if (arr == "3") {
            answerdetail = $('#answerD').val();
          }
        })

        if (!arr.length) {
          layer.msg('请勾选正确答案！', {icon: 5, time: 1500})
        }
        console.log('answerdetail------------' + answerdetail)
        $("#answerdetail").val(answerdetail);


        var str = document.getElementById("id1").value;
        console.log(str);
        if (str.indexOf(" ") > -1) {
          layer.msg('输入内容包含空格！', {icon: 5, time: 1500})
          return false;
        }


        return false;
        $.ajax({
          url: 'url',
          // data: {name: 'lqp', age: '18', sex: 0},
          // data: 'name=lqp&age=10',
          data: $(form).serializeArray(),
          dataType: 'json',
          success: function (res) {

          }
        })
      }
    });
    //表单验证
    $('#addTestForm').validate({
      rules: {
        content: {
          required: true,
        },
        answerA: {
          required: true,
        },
        answerB: {
          required: true,
        },
        answerC: {
          required: true,
        },
        answerD: {
          required: true,
        },


      },
      messages: {
        content: {
          required: "请输入试题内容！",
          minlength: "请输入最少一个字符！"
        },
        answerA: {
          required: "请输入试题选项！",
        },
        answerB: {
          required: "请输入试题选项！",
        },
        answerC: {
          required: "请输入试题选项！",
        },
        answerD: {
          required: "请输入试题选项！",
        },


      },
      errorElement: 'span',
      errorPlacement: function (error, element) {
        error.addClass('invalid-feedback');
        element.closest('.form-group').append(error);
      },
      highlight: function (element, errorClass, validClass) {
        $(element).addClass('is-invalid');
      },
      unhighlight: function (element, errorClass, validClass) {
        $(element).removeClass('is-invalid');
      }
    });


  });
</script>
<!--删除行-->
<script>
  $(function () {
    //批量删除
    $('.batchdel').click(function (e) {
      let trIds = [];
      let checks = $('.lqp-table input:checkbox:checked');
      for (let i = 0; i < checks.length; i++) {
        trIds.push(checks[i].id);
      }
      console.log('trIds', trIds)
    })
    // 获取行id
    // $('.data-id').click(function () {
    //   console.log($(this).attr('id'))
    // })
    //删除行
    $('.delsingle').click(function () {
      console.log($(this).parent().parent().attr('id'))
    })
  })
</script>

</body>
</html>
